/*
 * File			: 
 * Date			: 2016/11/08
 * Author		: lsh
 * Description	: 
 */
#include <iostream>
using namespace std;
#include "Factory.h"
#include "Product.h"
#include "ProductA.h"
#include "ProductB.h"

int main(int argc, char* argv[])
{
	Factory *fc = new Factory();

	Product *pA = fc->CreateProduct(TypeA);
	pA->Show();

	Product *pB = fc->CreateProduct(TypeB);
	pB->Show();

	delete pB;pB = NULL;
	delete pA;pA = NULL;
	delete fc;fc = NULL;

	return 0;
}
